package atom.core2.j2ee.util;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;



public class PostJumpUtil
{
	private static final Logger logger = Logger.getLogger(PostJumpUtil.class);
	private Map<String,String> params = new HashMap();
	private String url;
	
	public void addParm(String key,String value)
	{
		params.put(key, value);
	}
	
	public void forward(HttpServletRequest request,HttpServletResponse response) 
	{
		try
		{
		request.setAttribute("orderUrl", url);
		request.setAttribute("paramLists", params);
		RequestManager.forward(request,response,"/pages_public/jump/post_jump.jsp");
		}
		catch(Exception e)
		{
			logger.error(e.getMessage());
		}
	}



	public String getUrl()
	{
		return url;
	}



	public void setUrl(String url)
	{
		this.url = url;
	}
}
